File:Animated clock.svg

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书

原始文件(动画SVG文件,尺寸为800 × 800像素,文件大小:3 KB)

注意:由于技术限制,该文件的缩略图无法进行动画处理。


本图片是一个SVG动画文件。上述.png预览图像是用RSVG生成的,其用于维基媒体网站,但不能显示动画,而且可能图像会不完整或存在错误。要看到动画,请打开media:Animated clock.svg。这应该在现代浏览器或阅读器中工作。最新版本的ChromeFirefoxMicrosoft EdgeSafariOpera都支持基于SMIL的SVG动画。 其他SVG动画文件可在Category:Animated SVG files找到。

Templates:Animated SVG/I18n
العربية | Boarisch | বাংলা | català | čeština | Deutsch | Deutsch (Sie-Form)‎ | English | español | فارسی | suomi | français | galego | עברית | हिन्दी | magyar | հայերեն | íslenska | italiano | 日本語 | 한국어 | lietuvių | македонски | മലയാളം | Plattdüütsch | Nederlands | occitan | português | português do Brasil | русский | sicilianu | slovenščina | svenska | ไทย | українська | 中文 | 中文(简体)‎ | 中文(繁體)‎ | +/−

摘要

描述
English: Animated clock.
日期
来源 自己的作品
作者 Grufo
其他版本
SVG开发
InfoField
 
SVG的源代码为有效代码.
 
这是一张修改过的图片,这意味着它已在原版本的基础上通过软件进行了编辑。其原始版本为:Station Clock.svg

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
GNU head 本库为自由软件,您可以在自由软件基金会出版的GNU宽通用公共许可证第3版或更新版本的条款下再分发和/或修改本作品。分发本作品是希望它能有用,但没有任何担保,甚至没有隐含的销售或对于特定目的的适应性的担保。详见GNU宽通用公共许可证正文。

Synchronizing the clock with the current time

It is possible to synchronize the animation with the current local time by adding the following code at the end of the SVG file (before the final </svg> tag):

<script>
	var oDate = new Date(), nHours = oDate.getHours() % 12, nMinutes = oDate.getMinutes(), nSeconds = oDate.getSeconds();

	document.querySelector('.clock-second-hand').setAttribute('transform', 'rotate(' + (nSeconds * 6) + ', 400, 400)');
	document.querySelector('.clock-minute-hand').setAttribute('transform', 'rotate(' + (nMinutes * 6 + nSeconds / 10) + ', 400, 400)');
	document.querySelector('.clock-hour-hand').setAttribute('transform', 'rotate(' + (nHours * 30 + nMinutes / 2 + nSeconds / 120) + ', 400, 400)');
</script>

Currently Wikimedia Commons does not allow SVG files that contain scripts.

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

image/svg+xml

c40635232b86747568283381508ccb4110fccad3

2,935 字节

800 像素

800 像素

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2024年2月2日 (五) 01:472024年2月2日 (五) 01:47版本的缩略图800 × 800(3 KB)GrufoSymmetry
2023年10月10日 (二) 05:402023年10月10日 (二) 05:40版本的缩略图800 × 800(3 KB)Grufo=={{int:filedesc}}== {{Information |description={{en|1=Animated clock.}} |date=2023-10-10 |source={{own}} |author=Grufo |permission= |other versions=<gallery> Station Clock.svg|Static version </gallery> }} =={{int:license-header}}== {{LGPLv3}} == Synchronizing the clock with the current time == It is possible to synchronize the animation with the current local time by adding the following code at the end of the SVG file (before the <code></svg></code> tag at the end of...

没有页面链接到本图像。

元数据